import api from '@/api';

export function queryProductApi(params) {
  return api.get('/tube/admin/queryProduct', { params });
}

export function createProductApi(data) {
  return api.post('/tube/admin/createProduct', data);
}

export function updateProductApi(data) {
  return api.put('/tube/admin/updateProduct', data);
}

export function deleteProductApi(params) {
  return api.delete('/tube/admin/deleteProduct', { params });
}

export function detailProductApi(params) {
  return api.get('/tube/admin/detailProduct', { params });
}

export function deleteMountProductApi(data) {
  return api.post('/tube/admin/deleteMountProduct', data);
}

export function batchMountProductApi(data) {
  return api.post('/tube/admin/batchMountProduct', data);
}